<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
    <style>
        @font-face {
            /*这个字体名称要注意 icomoon */
            font-family: 'icomoon';
            /*2.一定要注意路径问题 */
            src:  url('fonts/icomoon.eot?7kkyc2');
            src:  url('fonts/icomoon.eot?7kkyc2#iefix') format('embedded-opentype'),
            url('fonts/icomoon.ttf?7kkyc2') format('truetype'),
            url('fonts/icomoon.woff?7kkyc2') format('woff'),
            url('fonts/icomoon.svg?7kkyc2#icomoon') format('svg');
            font-weight: normal;
            font-style: normal;
        }
        span {
            font-family: 'icomoon';
        }
        div {
            font-family: 'icomoon';
        }
    </style>
<body>
    <span> </span>
    <div> </div>
</body>
</html>